﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Iron : NPC
    {
        private string upgradeType;

        public string UpgradeType
        {
            get { return this.upgradeType; }
            set { this.upgradeType = value; }
        }

        public Iron(string name, NPCtype type, string upgradeType) :base(name, type)
        {
            this.upgradeType = upgradeType;
        }
    
           
        public override void Speak()
        {
            Console.WriteLine("你需要打造什么类型属性？ NPC：{0} 升级属性：{1}",base.Name,this.upgradeType);
        }
    }
   
}
